package com.ls.demo.enums;

/**
 * 通信类型（PC 下传客房、客房上传 PC）
 * @author liShan
 * @date 2019/8/30 17:13
 */
public enum CommandTypeEnum {

    /**
     * 客房上传 PC
     */
    UPLOAD(Byte.valueOf("1"), "F2", "F5"),

    /**
     * PC 下传客房
     */
    DOWNLOAD(Byte.valueOf("0"), "F1", "F4");

    CommandTypeEnum(byte type, String header, String tail) {
        this.type = type;
        this.header = header;
        this.tail = tail;
    }

    /**
     * 类型：0 下传， 1 上传
     */
    private byte type;

    /**
     * 包头
     */
    private String header;

    /**
     * 包尾
     */
    private String tail;

    /**
     * PC（服务中心电脑）高位
     */
    private String pcHigh = "3F";

    /**
     * PC（服务中心电脑）低位
     */
    private String pcLow = "FF";

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getTail() {
        return tail;
    }

    public void setTail(String tail) {
        this.tail = tail;
    }

    /**
     * Gets the value of pcHigh.
     *
     * @return the value of pcHigh
     */
    public String getPcHigh() {
        return pcHigh;
    }

    /**
     * Sets the pcHigh.
     *
     * <p>You can use getPcHigh() to get the value of pcHigh</p>
     *
     * @param pcHigh pcHigh
     */
    public void setPcHigh(String pcHigh) {
        this.pcHigh = pcHigh;
    }

    /**
     * Gets the value of pcLow.
     *
     * @return the value of pcLow
     */
    public String getPcLow() {
        return pcLow;
    }

    /**
     * Sets the pcLow.
     *
     * <p>You can use getPcLow() to get the value of pcLow</p>
     *
     * @param pcLow pcLow
     */
    public void setPcLow(String pcLow) {
        this.pcLow = pcLow;
    }
}
